{include app:admin.inc.header}
<!--tmpl-resource-->
{include app:admin.inc.top}


<div class="container-fluid content-body">
	<div class="main">
		<!-- left side start-->
		{include admin.inc.menu}
		<!-- left side end-->


		<!-- main content start-->
		<section class="right-section" id="right-section">
			<!-- start of inner-frame -->
			<div class="inner-iframe">

				<!-- page breadcrumb start-->
				{include admin.inc.bread}
				<!-- page "breadcrumb end-->
				<!-- Nav tabs -->
				<ul class="nav nav-tabs">

					<li {if $id==''}class="active"{/if}><a {if $id==''}href="javascript:void(0);"{else}href="{$add_url}"{/if}><i class="glyphicon glyphicon-plus"></i> 添加分组</a></li>
					<li><a href="{$index_url}" ><i class="glyphicon glyphicon-th-list"></i> 分组列表</a></li>
					{if $id != ''}<li class="active"><a href="javascript:void(0);"><i class="glyphicon glyphicon-edit"></i> 编辑分组</a></li>{/if}

				</ul>
				<div class="inner-container">
					<form role="form" class="form-horizontal basicForm content-add-form" id="content-add-form"
						  autocomplete="off">
						<h4>分组信息</h4>
						<div id="fourLinkage" style="border-top:1px solid #eee;border-bottom:1px solid #eee;padding: 10px 0px;margin: 0px 0px 10px;">
							<div class="form-group">
								<label class="col-sm-2 control-label"><span
										class="asterisk">*</span>分组名称</label>
								<div class="col-sm-4">
									<input type="text" class="form-control" max-length="10" required cname="分组名称" name="data[name]" value="{$item[name]}"
										   data-name="分组名称">
								</div>
							</div>
							<p class="help-block text-error"></p>
							<div class="form-group">
								<label class="col-sm-2 control-label"><span class="asterisk">*</span>状态</label>
								<div class="col-sm-4">
									<div class="rdio rdio-default">
										<input type="radio" name="data[status]" value="0" {if $item[status]=='0'}checked="checked"{/if} id="radioPrimaryMale">
										<label for="radioPrimaryMale">启用</label>
										<input type="radio" name="data[status]" value="1" {if $item[status]=='1'}checked="checked"{/if} id="radioPrimaryFemale" style="margin-left: 40px;">
										<label for="radioPrimaryFemale">禁用</label>
									</div>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-2 control-label">添加人</label>
								<div class="col-sm-4">
									<label class="control-label">{$item[manager_id]}</label>
								</div>
							</div>

						</div>
						<div class="btn-group btn-group-or">
							<a href="{if $id==''}{$do_add_url}{else}{$do_edit_url}?id={$id}{/if}"
							   class="btn btn-primary ajaxproxy"
							   proxy='{"method":"post", "location":"{$index_url}"}'>提交保存</a>

						</div>
					</form><!-- content add form -->
				</div>

			</div><!-- end of inner -->
		</section>
	</div>
</div>
{include admin.inc.footer}

<!--tmpl-script-->

<!-- pagescript -->
<script type="text/javascript">
	seajs.use("admin/memberadd",function (parameter){
		
		/**--tmpl-templatejavascript--**/
		
		<!--tmpl-templatejavascript-->
		parameter.upload_url="{$upload_url}";
		parameter.image_search_url="{$image_search_url}";
		parameter.image_list_url="{$image_list_url}";
		
		parameter.init();		
	});
</script>


<script id="assocpage" type="text/html">
<div class="text-right">
	<ul class="pagination blog-pagination">
		<li><a class="assoc-page" data-page="{[prev]}" href="javascript:void(0);">上一页</a></li> 
		{[loop pages page]}

		<li ><a class="assoc-page" data-page="{[page]}" {[if curr == page]}class="active"{[/if]} href="javascript:void(0)">{[page]}</a></li> 

		{[/loop]}
		<li><a class="assoc-page" href="javascript:void(0);" data-page="{[nexts]}">下一页</a></li> 
	</ul>	
</div>
</script>

</body>
</html>
